package day26;

import javax.xml.crypto.Data;
import java.util.Date;

public class Person {
    private String name;
    Integer age;
    protected String sex;
    public Date time;

    public void study(){
        System.out.println("运行学习方法");
    }
    public String play(String s){
        System.out.println("运行玩的方法");
        return "玩"+s;
    }
    private void play(String name,String s){
        System.out.println("你和"+name+"去玩"+s);
    }
    public Person(){
        System.out.println("运行无参构造");

    }
    private Person(String name, Integer age) {
        this.name = name;
        this.age = age;
        System.out.println("运行有参构造");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getAge() {
        return age;
    }

    public void setAge(Integer age) {
        this.age = age;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }
}

class Super{
    private String a;
    String b;
    protected String c;
    public String d;
        }